-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replaced useDispatch with useQuery #6329
replaced useDispatch with useQuery #6329
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❌ Deploy Preview for care-egov-staging failed.
|
❌ Deploy Preview for care-net failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add the response types to the API route def. itself in the You can add another key value pair, example:
If PatientModel or (any other similar name) doesn't exist that defines the type for that API response, you'll have to create one. Check the README of this repo. and you'll get to see the swagger documentation. You could use tools like https://transform.tools/json-to-typescript to convert the example response to JSON. (Related models needs to be properly referenced to other interfaces however) |
Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions. |
Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, This pr has been automatically closed because it has not had any recent activity. Thank you for your contributions. Feel free to repopen the pr. |
WHAT
replaced useDispatch with useQuery in (src/Components/DeathReport/**)
Proposed Changes
useDispatch
w.useQuery
/request
: DeathReport (src/Components/DeathReport/**
) #6328@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at d06f732
useDispatch
hook withuseQuery
hook to fetch patient data from API (link)useQuery
hook fromUtils/request
module (link)